package application.core;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class EditorToolArea extends JPanel{
	private static final long serialVersionUID = 1L;
	BufferedImage bufferedImage;

	public EditorToolArea(int width, int height){
		super();
		setVisible(true);
		setOpaque(true);
		setSize(width, height);
	}
	
	public void paint(Graphics g){
		g.setColor(Color.blue);
		g.fillRect(0, 0, getWidth(), getHeight());
		if(bufferedImage != null)
			g.drawImage(bufferedImage, 0, 0, null);
	}
}
